﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class main : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //''inserts the link for the users online.
        aUsersOnline.HRef = "javascript:commonPopup('" + IM.Server_Port_Secure() + "/IM/buddylist.aspx',200,350,4,'buddyList');";
        if (IM.UsersOnline() == 1)
        {
            lblUsersOnline.Text = IM.UsersOnline().ToString() + " user online";
        }
        else
        {
            lblUsersOnline.Text = IM.UsersOnline().ToString() + " users online";
        }

    }
}
